﻿<%@ Page Title="" Language="C#"  MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="AspNetMvc" %>
<%@ Import Namespace="WebGuiMvc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
       function redirect() {
           window.location = "<%= Html.Encode(ViewData["ReturnUrl"])%>";
       }

    </script>
</asp:Content>
<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%= ViewStrings.LogOnStrings.LoggedIn %>
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%= ViewStrings.LogOnStrings.LoggedIn %></h2>
    <p>
        <% using (Html.BeginForm(MVC.Account.ActionNames.CreateUser, MVC.Account.Name, new { returnUrl = ViewData["ReturnUrl"], openIdUrl = ViewData["OpenIdURL"] }, FormMethod.Post))
           {%>
        <p>
                <label for="username">
                <%= ViewStrings.LogOnStrings.Username%>:</label>
                <%= Html.TextBox("username")%>
                <%= Html.ValidationMessage("username")%>
                <span id="username_error"></span>
<%--            <%=  string.Format(ViewStrings.LogOnStrings.UsernameCreated,
                            ViewData["OpenIdURL"] as string,
                            ViewStrings.LogOnStrings.Create,
                            Html.ActionLink(ViewStrings.LogOnStrings.Myprofile, MVC.Account.UpdateProfile()))
            %>--%>
        </p>
        <p>
            <%= string.Format("<input type=\"submit\" value=\"{0}\" />", ViewStrings.LogOnStrings.Create)%>
            <%}
                        
            %>
            <%--<%= string.Format("<input type=\"button\" value=\"{0}\" onclick=\"redirect()\"/>", "Cancel")%>--%>
        </p>
    </p>
</asp:Content>
